<!DOCTYPE html>
<html>
<body>
    <script src="../../resources/check-layout.js"></script>
    <p> webkit.org/b/114900: checkLayout() should error out if the layout wasn't checked. </p>
    <span style="background-color: green;">xxx <span style="background-color:blue;" data-total-invalid-attribute=0>yyy</span></span>
    <script>
        checkLayout('span > span');
        var lastChild = document.body.lastChild;
        if (lastChild.textContent.indexOf("No valid data-* attributes") != -1) 
            document.body.replaceChild(document.createTextNode("PASS: The check for valid data-* attributes worked as expected."), lastChild);
    </script>
</body>
</html>
